import yagmail
def send_mail(a):
    mail=yagmail.SMTP(user="3083843868@qq.com",password="rtdqshuuutvadfde",host="smtp.qq.com")
    mail.send(to="3083843868@qq.com",subject="月考接口测试报告",contents="报告",attachments=a)